package com.boot2551.service;

import com.boot2551.bean.Admin;
import com.boot2551.mapper.AdminMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * spring:一是控制反转 ioc  二是依赖注入di
 *   将对象的创建和管理交给spring容器进行管理
 */
@Service
public class AdminS implements AdminMapper {
    @Resource
    public AdminMapper am;
    @Override
    public Admin one(String name, String pwd) {
        return am.one(name,pwd);
    }
}
